﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SusuCMS
{
    public class PageTypeRepository : RepositoryBase, IPageTypeRepository
    {
        public PageTypeRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { }

        public IQueryable<PageType> FindAll()
        {
            return _CmsDataContext.PageTypes;
        }

        public void Add(PageType entity)
        {
            _CmsDataContext.PageTypes.Add(entity);
        }

        public void Remove(PageType entity)
        {
            _CmsDataContext.PageTypes.Remove(entity);
        }
    }
}
